﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XW.Utils
{
	/// <summary>
	/// BoolNull 扩展
	/// </summary>
	public static class BoolExtensions
	{
		/// <summary>
		/// 判断是否true
		/// </summary> 
		public static bool IsTrue(this bool? b)
		{
			if (b.HasValue && b.Value)
			{
				return true;
			}
			return false;
		}
	}
}
